{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "48901cf0",
   "metadata": {
    "polyglot_notebook": {
     "kernelName": "csharp"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Hello world!\r\n"
     ]
    }
   ],
   "source": [
    "Console.WriteLine(\"Hello world!\");"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e66fc161",
   "metadata": {},
   "source": [
    "# semantic kernel 开始前奏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "polyglot_notebook": {
     "kernelName": "csharp"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "姓名:zhang san,性别:男,年龄:14\r\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<details open=\"open\" class=\"dni-treeview\"><summary><span class=\"dni-code-hint\"><code>姓名:zhang san,性别:男,年龄:14</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td>Name</td><td><div class=\"dni-plaintext\"><pre>zhang san</pre></div></td></tr><tr><td>Age</td><td><div class=\"dni-plaintext\"><pre>14</pre></div></td></tr><tr><td>Sex</td><td><div class=\"dni-plaintext\"><pre>男</pre></div></td></tr></tbody></table></div></details><style>\r\n",
       ".dni-code-hint {\r\n",
       "    font-style: italic;\r\n",
       "    overflow: hidden;\r\n",
       "    white-space: nowrap;\r\n",
       "}\r\n",
       ".dni-treeview {\r\n",
       "    white-space: nowrap;\r\n",
       "}\r\n",
       ".dni-treeview td {\r\n",
       "    vertical-align: top;\r\n",
       "    text-align: start;\r\n",
       "}\r\n",
       "details.dni-treeview {\r\n",
       "    padding-left: 1em;\r\n",
       "}\r\n",
       "table td {\r\n",
       "    text-align: start;\r\n",
       "}\r\n",
       "table tr { \r\n",
       "    vertical-align: top; \r\n",
       "    margin: 0em 0px;\r\n",
       "}\r\n",
       "table tr td pre \r\n",
       "{ \r\n",
       "    vertical-align: top !important; \r\n",
       "    margin: 0em 0px !important;\r\n",
       "} \r\n",
       "table th {\r\n",
       "    text-align: start;\r\n",
       "}\r\n",
       "</style>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "public class Persion\n",
    "{\n",
    "    public string Name {get;set;}\n",
    "    public string Age {get;set;}\n",
    "    public string Sex {get;set;}\n",
    "\n",
    "    public override string ToString()\n",
    "    {\n",
    "        return $\"姓名:{Name},性别:{Sex},年龄:{Age}\";        \n",
    "    }\n",
    "}\n",
    "\n",
    "var persion= new Persion\n",
    "{\n",
    "    Name=\"zhang san\",\n",
    "    Age=\"14\",\n",
    "    Sex=\"男\"\n",
    "};\n",
    "\n",
    "Console.WriteLine(persion);\n",
    "persion.Display();"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "36b767c7",
   "metadata": {},
   "source": [
    "# 配置 nuget源"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "polyglot_notebook": {
     "kernelName": "csharp"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><div><strong>Restore sources</strong><ul><li><span>https://nuget.cdn.azure.cn/v3/index.json</span></li></ul></div><div></div><div></div></div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "#i \"nuget:https://nuget.cdn.azure.cn/v3/index.json\""
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9fb2411d",
   "metadata": {},
   "source": [
    "引入第三方库"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "polyglot_notebook": {
     "kernelName": "csharp"
    }
   },
   "outputs": [],
   "source": [
    "#r \"nuget: Microsoft.SemanticKernel\""
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".NET (C#)",
   "language": "C#",
   "name": ".net-csharp"
  },
  "polyglot_notebook": {
   "kernelInfo": {
    "defaultKernelName": "csharp",
    "items": [
     {
      "aliases": [],
      "languageName": "csharp",
      "name": "csharp"
     }
    ]
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
